//fluent-ffmpeg解码工具，依赖ffmpeg必须下载软件安装（用npm安装的有问题）
var ffmpeg = require('fluent-ffmpeg');
var command = ffmpeg('tem01.amr')
    .on('end', function() {
        console.log('file has been converted succesfully');
    })
    .on('error', function(err) {
        console.log('an error happened: ' + err.message);
    })
    .save('tem01.mp3');
